package com.rankeiot.demo.a;

import com.rankeiot.demo.b.SubBean;
import lombok.Data;
import org.sagacity.sqltoy.config.annotation.Column;
import org.sagacity.sqltoy.config.annotation.Entity;
import org.sagacity.sqltoy.config.annotation.Id;

import java.io.Serializable;

@Entity(tableName = "d_demo")
@Data
public class Demo implements Serializable {
    @Id
    @Column(name="id")
    Integer id;
    @Column(name="avatar")
    SubBean avatar;
}
